// export const api = '/api';
export const api = '';
export const bigdatasupport = '/bigdatasupport';
// export const bigdatasupport = 'http://10.204.125.109:6065/bigdatasupport';
export const bigdatacommon = '/bigdatacommon'; // 是否网关  /bigdatacommon

/** iframe外部项目地址 start */
// 目前这些地址未做代理，因后台没有做hosts映射
export const bigdatajob = 'http://10.204.125.216:10006/bigdatajob';
export const ranger = 'http://bigdatadev06.isky.com:6080';
export const eurekaServer = 'http://bigdatadev05.isky.com:8762';
export const ambariServer = 'http://bigdatadev05.isky.com:8080';
export const springBootAdmin = 'http://10.204.125.108:8788';
// export const mycat = 'http://10.204.125.209:8082/mycat';
export const mycat = 'http://10.204.125.105:8082/mycat';

export const button_service = ''; // 添加buttonService权限按钮
// export const button_service = '/buttonService'; // 添加buttonService权限按钮

/* nginx方式，提交测试或上线需要配制到nginx反向代理 */
// export const bigdatajob = '/bigdatajob';
// export const ranger = '/iframeRanger';
// export const eurekaServer = '/iframeEurekaServer';
// export const ambariServer = '/iframeAmbariServer';
// export const springBootAdmin = '/iframeSpringBootAdmin';
// export const mycat = '/iframeMycat';

// nginx配制
/*
location /bigdatajob {
    proxy_pass http://10.204.125.216:10006/bigdatajob;
}
location /iframeRanger {
    proxy_pass http://bigdatadev06.isky.com:6080;
}
location /iframeEurekaServer {
    proxy_pass http://bigdatadev05.isky.com:8762;
}
location /iframeAmbariServer {
    proxy_pass http://bigdatadev05.isky.com:8080;
}
location /iframeSpringBootAdmin {
    proxy_pass http://10.204.125.108:8788;
}
location /iframeMycat {
    proxy_pass http://10.204.125.209:8082/mycat;
}
*/
/** iframe外部项目地址 end */

export function isDev () {
    return process.env.NODE_ENV === 'development';
}
